composition of inverse functions tutorials